package com.sbdo.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.annotation.Service;
import com.sbdo.mapper.UserMapper;
import com.sbdo.mode.User;
import com.sbdo.service.DemoService;
import com.sbdo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Reference
    private DemoService demoService;

    @Override
    public int insertUser(User user) {
        return 0;
    }

    @Override
    public String rpcProviderByB(String rpcmsg) {
        return demoService.sayHello(rpcmsg + " provider_a");
    }
}